Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32911 - vcron-3.0.1-r2 causes anacron failure (stdin closed)
Summary: vcron-3.0.1-r2 causes anacron failure (stdin closed)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Chris PeBenito (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-06 15:17 UTC by Jörg Dietrich
Modified: 2003-11-12 15:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
updated vcron-3.0.1-close_stdin.diff (vcron-3.0.1-close_stdin.diff,798 bytes, patch)
2003-11-07 13:07 UTC, Chris PeBenito (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Dietrich 2003-11-06 15:17:34 UTC
vcron-3.0.1-r2 causes anacron to fail with the message 

anacron: Can't close stdin: Bad file descriptor

This is almost certainly caused by the "fix" of bug #26413. Problem is not
present in vcron-3.0.1-r1.

Reproducible: Always
Steps to Reproduce:
/etc/crontab:
33 22 * * * root /usr/sbin/anacron

/etc/anacrontab:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# format: period delay job-identifier command
1       5       cron.daily      run-parts /etc/cron.daily
7       10      cron.weekly     run-parts /etc/cron.weekly
30      15      cron.monthly    run-parts /etc/cron.monthly



Actual Results:  
anacron exited immediately with

anacron: Can't close stdin: Bad file descriptor



Expected Results:  
run anacron
Comment 1 Chris PeBenito (RETIRED) gentoo-dev 2003-11-07 13:07:28 UTC
Created attachment 20398 [details, diff]
updated vcron-3.0.1-close_stdin.diff

Updated close stdin patch.  Please place this in
/usr/portage/sys-apps/vcron/files, and remerge vcron-3.0.1-r2, and see if
it
fixes the problem.
Comment 2 Jörg Dietrich 2003-11-12 01:06:37 UTC
Patch fixed problem. Thanks.
Comment 3 James Wendel 2003-11-12 15:27:07 UTC
I was going to post a bug about this, but someone beat me to it.  I started a topic about problems with 'expect' not working with vcron after the -r2 update, but I tried this patch and it fixed my problem as well. Thanks

The thread with a detailed description of my problem:
http://forums.gentoo.org/viewtopic.php?t=104398