Dear All, When I am running a program under Wine and I press Control-C, the running program is killed. However, this behavior is not always the desired one. In truth, imagine that the program is doing some calculations that you want to interrupt; if one presses Control-C, the program is killed, but all one wanted was to interrupt the calculations and NOT killing the program. Is there some workaround? Thanks in advance, Paul
Frédéric Delanoy
2009-Jul-23 13:14 UTC
[Wine] How to avoid control-c killing the open program?
On Thu, Jul 23, 2009 at 2:38 PM, phhs80<wineforum-user at winehq.org> wrote:> Dear All, > > When I am running a program under Wine and I press Control-C, the running program is killed. However, this behavior is not always the desired one. In truth, imagine that the program is doing some calculations that you want to interrupt; if one presses Control-C, the program is killed, but all one wanted was to interrupt the calculations and NOT killing the program. Is there some workaround? > > Thanks in advance, > > PaulWell, if the program itself doesn't provide a way to cancel a calculation, I don't see what wine could do... it doesn't (and shouldn't) have intimate knowledge of every application... Now, if you just want to suspend the program, you can use your terminal suspend feature (Ctrl-Z generally) to suspend the whole process Fr?d?ric
Martin Gregorie
2009-Jul-23 13:22 UTC
[Wine] How to avoid control-c killing the open program?
On Thu, 2009-07-23 at 07:38 -0500, phhs80 wrote:> Dear All, > > When I am running a program under Wine and I press Control-C, the > running program is killed. However, this behavior is not always the > desired one. >A Linux/UNIX program can catch Control-C and take any action it likes, but it must be written to do that. The default action is to terminate the process. What does your program do when its run under Windows and you type Control-C? Martin
Martin Gregorie wrote:> On Thu, 2009-07-23 at 07:38 -0500, phhs80 wrote: > > > Dear All, > > > > When I am running a program under Wine and I press Control-C, the > > running program is killed. However, this behavior is not always the > > desired one. > > > > > A Linux/UNIX program can catch Control-C and take any action it likes, > but it must be written to do that. The default action is to terminate > the process. > > What does your program do when its run under Windows and you type > Control-C? > > > MartinThanks to both answers. On Windows, when I press Control-C the calculations of the program are interrupted, but the program is not killed. That is, the key sequence to interrupt calculations is Control-C. I am talking about a program that runs in a console. Paul
Martin Gregorie wrote:> > This mechanism may well be different for the NT-based versions of > Windows so if you haven't tried doing so, what difference does it make > if you set Wine to emulate Win98? >Thanks, Martin, for your reply. I have tried with Win98 emulation, but no progress. Paul
Seemingly Similar Threads
- Editor for R under Fedora 7
- Killing an open file doesnt work? (i dont know how to..!)
- Ryacas and fractions with simultaenously very large numerators and denominators
- RStudio crashes with segmentation fault on F41
- Looking for transformation to overcome heterogeneity of variances