Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#12621 - 02/08/2000 10:34 Player signal suport
schofiel
carpal tunnel

Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
Is there any BSD-style signal handling built into the player application, or do all the signals default to the default signal action (SIGKILL)?

Mike, could you build in a set of signals to pause the player (INT), re-start the player (HUP)?

One of the few remaining Mk1 owners... #00015
_________________________
One of the few remaining Mk1 owners... #00015

Top
#12622 - 03/08/2000 10:23 Re: Player signal suport [Re: schofiel]
mac
addict

Registered: 20/05/1999
Posts: 411
Loc: Cambridge, UK
To quote David R. Butenhof "It is always best to avoid using signals in conjunction with threads. When signals and threads meet, beware"[1]

I'd rather not have to handle signals. I'm sure we can come up with another way that would work just as well - how about a named pipe which uses exactly the same commands as the serial port? (Not that I'm volunteering to write it anytime soon!)

[1] Programming with POSIX Threads, David R. Butenhof, Addison Wesley. section 6.6.

--
Mike Crowe
I may not be speaking on behalf of empeg above :-)
_________________________
--
Mike Crowe

Top
#12623 - 03/08/2000 12:18 Re: Player signal suport [Re: mac]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5916
Loc: Wivenhoe, Essex, UK
Couldn't someone do something like intercept.c which intercepts the IR codes, but intercept the serial port instead ?

__
Unit serial number 47 (was 330 in the queue)...
_________________________
Remind me to change my signature to something more interesting someday

Top