This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager
- From: - <lopiuh at googlemail dot com>
- To: marco at gmail dot com, cygwin at cygwin dot com, Anr Daemon <anrdaemon at yandex dot ru>, cygsimple at gmail dot com
- Date: Wed, 24 Dec 2014 02:56:11 +0100
- Subject: Re: Exitcode is 0 when killing a cygwin initiated process via taskmanager
- Authentication-results: sourceware.org; auth=none
- References: <CAMhmPJ2RMoDhF0V=i4=TKtJ2bD_JeNOecUKzKN=0wR1PH8O-sQ at mail dot gmail dot com> <CAMhmPJ1xDjhepMTO3x2_AF6xo5mA3i193qKXJ5znfax7_YDDCg at mail dot gmail dot com>
>> If it is similar in GNU/Linux we have a general problem I suppose. If it is a cygwin
>> thing, it is a feature which behaves different to the real posix world?!
> Cygwin is a POSIX environment executing within the Windows OS environment.
> If things happen outside of the Cygwin environment it cannot detect those.
> You must train your users to not use the Windows Task Manager to kill the process outside of the Cygwin environment.
> The problem does not exist in Linux because there isn't an environment inside an environment so there isn't a chance
> to use the tools improperly.
Ok I wrote a wrapper and check stdout of critical commands. If I get
returnvalue 0 but not expectet stdout I panic. As far as my critical
part is rsync that is a safe bet (there is a nice footer when rsync
was not interrupted).
As far as robustness is concerned I must say I am happy having found
this edge very early.
What do you think is that topic worth an entry in FAQ/Documentation?
On the other hand this thread will be found through google search...
Thanks again for being supportive and all your work!
lopiuh
keywords: cygwin returnvalue errorcode taskmanager exitcode process
kill end continue zero errorvalue unset
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple