Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-20 Thread Michael Matz
Hi, On Thu, 20 Nov 2014, Patrick Palka wrote: > > -wrapper is specifically also for invoking cc1 with gdb from the > > driver (that's the usecase documented with -wrapper), so it better > > should work as intended. I don't know what problems Patrick had with > > that, though. For me gcc -wra

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-20 Thread Patrick Palka
On Tue, Nov 18, 2014 at 11:14 AM, Michael Matz wrote: > Hi, > > On Mon, 17 Nov 2014, Richard Biener wrote: > >> This means I can no longer interrupt a compile that is running too long? > > No, that's not what it means, cc1 will also get the SIGINT. > >> You should instead debug the actual compiler

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-18 Thread Michael Matz
Hi, On Mon, 17 Nov 2014, Richard Biener wrote: > This means I can no longer interrupt a compile that is running too long? No, that's not what it means, cc1 will also get the SIGINT. > You should instead debug the actual compiler, not the driver. -wrapper is specifically also for invoking cc1

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-17 Thread Joseph Myers
On Sat, 15 Nov 2014, Patrick Palka wrote: > 1. if the top-level driver is waiting on a hanging subprocess, > pressing ^C will kill the driver but it may not necessarily kill the > subprocess; an unresponsive, perhaps busy-looping subprocess may be > running in the background yet the compil

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-17 Thread Patrick Palka
On Mon, Nov 17, 2014 at 5:23 AM, Richard Biener wrote: > On Sun, Nov 16, 2014 at 2:01 AM, Patrick Palka wrote: >> Currently the top-level driver handles SIGINT by immediately killing >> itself even when the driver has subprocesses (e.g. cc1, as) running. I >> don't think this is a good idea beca

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-17 Thread Mike Stump
On Nov 17, 2014, at 2:23 AM, Richard Biener wrote: > On Sun, Nov 16, 2014 at 2:01 AM, Patrick Palka wrote: >> Currently the top-level driver handles SIGINT by immediately killing >> itself even when the driver has subprocesses (e.g. cc1, as) running. I >> don't think this is a good idea because

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-17 Thread Andreas Schwab
Richard Biener writes: > This means I can no longer interrupt a compile that is running too long? The compiler will receive your interrupt as well, and die eventually, unless it is blocked for some reason, in which case you will now notice instead of leaving behind a lingering process. Andreas.

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-17 Thread Richard Biener
On Sun, Nov 16, 2014 at 2:01 AM, Patrick Palka wrote: > Currently the top-level driver handles SIGINT by immediately killing > itself even when the driver has subprocesses (e.g. cc1, as) running. I > don't think this is a good idea because > > 1. if the top-level driver is waiting on a hanging

Re: [PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-15 Thread Patrick Palka
On Sat, 15 Nov 2014, Patrick Palka wrote: Currently the top-level driver handles SIGINT by immediately killing itself even when the driver has subprocesses (e.g. cc1, as) running. I don't think this is a good idea because 1. if the top-level driver is waiting on a hanging subprocess, pressin

[PATCH] driver: ignore SIGINT while waiting on subprocesses to finish

2014-11-15 Thread Patrick Palka
Currently the top-level driver handles SIGINT by immediately killing itself even when the driver has subprocesses (e.g. cc1, as) running. I don't think this is a good idea because 1. if the top-level driver is waiting on a hanging subprocess, pressing ^C will kill the driver but it may not ne