This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
5.8.3 -- fix signal comments in L<perlfunc/system>
authorBrendan O'Dea <bod@debian.org>
Sun, 25 Jan 2004 11:23:48 +0000 (22:23 +1100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Tue, 27 Jan 2004 10:31:09 +0000 (10:31 +0000)
Message-ID: <20040125002348.GA31407@londo.c47.org>

p4raw-id: //depot/perl@22228

pod/perlfunc.pod

index d7912b1..5e4631b 100644 (file)
@@ -5765,9 +5765,10 @@ indicates a failure to start the program (inspect $! for the reason).
 Like C<exec>, C<system> allows you to lie to a program about its name if
 you use the C<system PROGRAM LIST> syntax.  Again, see L</exec>.
 
-Because C<system> and backticks block C<SIGINT> and C<SIGQUIT>,
-killing the program they're running doesn't actually interrupt
-your program.
+Since C<SIGINT> and C<SIGQUIT> are ignored during the execution of
+C<system>, if you expect your program to terminate on receipt of these
+signals you will need to arrange to do so yourself based on the return
+value.
 
     @args = ("command", "arg1", "arg2");
     system(@args) == 0
@@ -5787,7 +5788,6 @@ C<$?> like this:
        printf "child exited with value %d\n", $? >> 8;
     }
 
-
 or more portably by using the W*() calls of the POSIX extension;
 see L<perlport> for more information.