Re: dd: exit nonzero on receipt of SIGINT

2017-10-24 Thread Theo Buehler
> So when calling _exit() explicitly, we have to pass a status > of 128 + signo indeed. I agree with your analysis. ok

Re: dd: exit nonzero on receipt of SIGINT

2017-10-24 Thread Ingo Schwarze
Hi, Scott Cheloha wrote on Mon, Oct 23, 2017 at 09:01:04PM -0500: > Per this bit from POSIX on dd(1): >> For SIGINT, the dd utility shall interrupt its current processing, >> write status information to standard error, and exit as though >> terminated by SIGINT. It shall take the standard actio

dd: exit nonzero on receipt of SIGINT

2017-10-23 Thread Scott Cheloha
Hi, Per this bit from POSIX on dd(1): > For SIGINT, the dd utility shall interrupt its current processing, > write status information to standard error, and exit as though > terminated by SIGINT. It shall take the standard action for all > other signals; see [...]. I think we ought to exit nonz