Suspeded (tty output) on perl system on 7-current

Artem Kuchin matrix at itlegion.ru
Sun Oct 14 06:52:46 PDT 2007


Dmitry Morozovsky wrote:
> On Fri, 5 Oct 2007, Anton Berezin wrote:
> 
>> On Sat, Oct 06, 2007 at 12:07:22AM +0400, Artem Kuchin wrote:
>>> I am having a problem which might not be related to current, but i
>>> do not have it on any of the 6-stable boxes.
>>> 
>>> So, there is a very simple perl script.
>>> 
>>> #!/usr/bin/perl
>>> 
>>> $com="/usr/bin/su hordelo_ru -c '/usr/local/sbin/httpd -f
>>> /hosts/CONFS/horosheedelo.ru -k graceful-stop'";
>>> system($com);
>>> print "done!\n";
>>> 
>>> It work find on 6-stable. RUns httpd and prints done!
>>> Howeverm on 7-current (amd64) it does  the following:
>>> 
>>> horus# ./a.pl
>>> httpd (no pid file) not running
>>> 
>>> Suspended (tty output)
>>> 
>>> if i do 'fg' it continues and finishes fine.
>> 
>> Do you get "httpd (no pid file) not running" on 6.X?
>> 
>> What happens on 7.0 when you do the command in $com by hand (without
>> perl)? 
>> 
>> What's the output of perl -V?
>> 
>> What's httpd - apache or something else?
>> 
>> Are the versions of httpd the same on both 6.X and 7.0?
> 
> Looking at 'su' in the command line tends me to think about broken
> tcsh signal handling in -current...

It is nore PRERELEASE but this issue is stil present. Will su be fixed
in release? As i said, a bunch of system managing scripts do not work now because
they get suspended when calling system.

--
Regards,
Artem




More information about the freebsd-current mailing list