Keeping an eye on hung system calls..

Thomas Yandell tom at yandell.me.uk
Tue Jun 6 14:43:42 BST 2006


Lusercop wrote:
> On Tue, Jun 06, 2006 at 12:59:05PM +0100, Thomas Yandell wrote:
>   
>> if (my $child = fork) {
>> else {
>>     
>
> Where's the "fork() failed" error handling?
>
> Grr.
>
>   
My bad:

my $child = fork;
die "could not fork" unless defined $child;
if ($child) {
...


Tom



More information about the london.pm mailing list