Search Results

Search: Posts Made By: Basherrr
11,232
Posted By alister
Yes. Use a non-interactive shell to source the...
Yes. Use a non-interactive shell to source the script. Or, if you must use an interactive shell, invoke set +m (but this is unusual and may be a sign that you're going about things in the wrong way)....
11,232
Posted By alister
I ran your script with bash and dash and both...
I ran your script with bash and dash and both worked fine.

Control-C sends SIGINT to every process in the foreground process group. Non-interactive shells run everything in the same process group,...
11,232
Posted By Chubler_XL
All commands unless they are bash internals are...
All commands unless they are bash internals are run as a child process.

As an example try replacing the external sleep command with the internal read like this:

while :
do
echo in...
11,232
Posted By jim mcnamara
sleep invokes a wait like nanosleep() and sets a...
sleep invokes a wait like nanosleep() and sets a signal handler for SIGALRM.

But. /usr/bin/sleep is run in a separate child process. So, ctrl/c is sent to the child process not the parent.

It...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy