Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > which signal after suspend/resume?

Reply
Thread Tools

which signal after suspend/resume?

 
 
Juergen.Bausa@online.de
Guest
Posts: n/a
 
      10-19-2012
I have a program (written in C) that needs to do some actions after Suspend/resume or hibernate/resume of the system. Is there a special signal raised for this purpose? if not, how can my program know about the suspend?

Juergen
 
Reply With Quote
 
 
 
 
Ben Bacarisse
Guest
Posts: n/a
 
      10-19-2012
writes:

> I have a program (written in C) that needs to do some actions after
> Suspend/resume or hibernate/resume of the system. Is there a special
> signal raised for this purpose? if not, how can my program know about
> the suspend?


This is highly system-specific so there's no C answer. You'll have to
ask in a group that deals with the system you are targeting.

--
Ben.
 
Reply With Quote
 
 
 
 
Sjouke Burry
Guest
Posts: n/a
 
      10-19-2012
wrote in
news:2af0bed0-ff6b-402e-b60c-:

> I have a program (written in C) that needs to do some actions after
> Suspend/resume or hibernate/resume of the system. Is there a special
> signal raised for this purpose? if not, how can my program know about
> the suspend?
>
> Juergen
>


By watching the clock??
 
Reply With Quote
 
Juergen.Bausa@online.de
Guest
Posts: n/a
 
      10-19-2012
Am Freitag, 19. Oktober 2012 23:25:15 UTC+2 schrieb Sjouke Burry:
> wrote in
>
> news:2af0bed0-ff6b-402e-b60c-:
>
>
>
> > I have a program (written in C) that needs to do some actions after

>
> > Suspend/resume or hibernate/resume of the system. Is there a special

>
> > signal raised for this purpose? if not, how can my program know about

>
> > the suspend?

>
> >

>
> > Juergen

>
> >

>
>
>
> By watching the clock??


Yes, thats what I am doing now. Not very elegant.

By the way, the system is linux.

Any other suggestion?

Juergen
 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      10-19-2012
writes:
> Am Freitag, 19. Oktober 2012 23:25:15 UTC+2 schrieb Sjouke Burry:
>> wrote in
>> news:2af0bed0-ff6b-402e-b60c-:
>> > I have a program (written in C) that needs to do some actions after
>> > Suspend/resume or hibernate/resume of the system. Is there a special
>> > signal raised for this purpose? if not, how can my program know about
>> > the suspend?
>> >
>> > Juergen
>> >

>> By watching the clock??

>
> Yes, thats what I am doing now. Not very elegant.
>
> By the way, the system is linux.
>
> Any other suggestion?


Yes, ask in comp.unix.programmer. The folks who know about POSIX
systems hang out there.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Target of signal assignment is not a signal" Nicolas Moreau VHDL 9 07-25-2007 04:21 PM
Re: How to make an internal signal embedded deep in hierarchy to a gloal output signal Weng Tianxiang VHDL 2 01-30-2007 12:58 PM
Aside from delta cycles and/or resolution functions, how can the effective value of a signal differ from a driving signal of its? Colin Paul Gloster VHDL 0 01-11-2007 01:31 PM
threading.Thread vs. signal.signal Jack Orenstein Python 0 09-17-2005 11:24 PM
Async-signal safe functions in signal handlers (unix) Michael Pronath Python 1 01-03-2005 01:10 PM



Advertisments