Section One BBS

Welcome, Guest.


Subject: Semaphore Date: Mon Jan 18 2021 10:33 am
From: Richard Menedetter To: Nick Andre

Hi Nick!

17 Jan 2021 18:27, from Nick Andre -> Rob Swindell:

 NA> What was asked was an additional check for a simple dummy file when
 NA> BinkD ***is idle*** and terminates if that file exists.

BinkD is open source.
Anybody can implement stuff, or pay somebody to implement stuff.

I assume that for some people it sounds very strange to implement an exit file
semaphore in 2021.
So they don't do it, as they do not see any benefit in it.

 NA> I prefer to have all connections finish before BinkD shuts down....

Then don't send BinkD SIGKILL, take some other signal.
I assume SIGTERM will wait until ongoing calls are finished.
SIGTERM is the polite request of the OS to please quit when it suitable for
you.
SIGKILL is a yo're fired now..

I have not checked how BinkD reacts to SIGTERM

 NA> letting the door close gently via a dummy file rather than slamming it shut
 NA> with Pid.

There are MANY SIGNALS!!!!!
Only one "slams the door shut".
Do not use SIGKILL if you do not mean to kill the process.
In case there is nothing that suits you, you can use SIGUSR1 or SIGUSR2.
(behaviour needs to be implemented in BinkD then)

CU, Ricsi

... Bigamy is having one wife too many. Monogamy is the same. -Oscar Wilde
--- GoldED+/LNX
 * Origin: He who laughs, lasts. (2:310/31)

Previous Message       Next Message
In Reply To: Re: Semaphore (Nick Andre)
Replies: Semaphore (Oli)Re: Semaphore (Nick Andre)