bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

on interrupt, xargs does not wait for subprocess to exit


From: Frederik Eaton
Subject: on interrupt, xargs does not wait for subprocess to exit
Date: Fri, 21 Aug 2015 18:42:07 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Dear bug-findutils,

In brief:

    $ seq 1 10 | xargs sh -c 'trap "" INT; sleep 3; echo hi'
    ^C
    [130]$ hi

Notice that I pressed ^C and xargs exited, the shell prompt appeared,
some seconds later the word "hi" appeared.

Is this the correct behavior for xargs? It could be somewhat annoying
in certain cases.

I'm not currently subscribed so please Cc me!

Thanks,

Frederick



reply via email to

[Prev in Thread] Current Thread [Next in Thread]