Photon Questions

First let me describe my system setup, I have QNX 4.25 with Photon 1.14 and
it is set to boot directly into Photon and when exiting Photon you have no
option to exit to the terminal only the “Shutdown” button.

What I am trying to do is have a program perform some cleanup when you tell
Photon to shutdown at the login window. However, I do not know what signal
I should listen for or for that matter what signal is generated.

If anyone knows what signals Photon raises as a user logs in, logs out and
shutsdown Photon that would be extrememly helpful. Thanks.

ross

Hi Ross,

I checked with the developer

For a Photon shutdown:

  • apps get hit with TERM
  • Photon gets hit with HUP if logged in form phlogin, otherwise TERM

Hope this helps
Regards
Brenda

Ross Brantner wrote:

First let me describe my system setup, I have QNX 4.25 with Photon 1.14 and
it is set to boot directly into Photon and when exiting Photon you have no
option to exit to the terminal only the “Shutdown” button.

What I am trying to do is have a program perform some cleanup when you tell
Photon to shutdown at the login window. However, I do not know what signal
I should listen for or for that matter what signal is generated.

If anyone knows what signals Photon raises as a user logs in, logs out and
shutsdown Photon that would be extrememly helpful. Thanks.

ross

first off sorry about the crosspost but it started off as an os question
then migrated to a photon question so i switched groups. your reply is very
helpful but i have one more quick question, are any signals raised when a
user logs out of photon and is taken to phlogin?

ross

“GUI Group” <gui@qnx.com> wrote in message news:3C4DB5A6.40505@qnx.com

Hi Ross,

I checked with the developer

For a Photon shutdown:

  • apps get hit with TERM
  • Photon gets hit with HUP if logged in form phlogin, otherwise TERM

Hope this helps
Regards
Brenda

Ross Brantner wrote:

First let me describe my system setup, I have QNX 4.25 with Photon 1.14
and
it is set to boot directly into Photon and when exiting Photon you have
no
option to exit to the terminal only the “Shutdown” button.

What I am trying to do is have a program perform some cleanup when you
tell
Photon to shutdown at the login window. However, I do not know what
signal
I should listen for or for that matter what signal is generated.

If anyone knows what signals Photon raises as a user logs in, logs out
and
shutsdown Photon that would be extrememly helpful. Thanks.

ross
\

for some reason i am not getting any SIGTERM’s when i shutdown from Photon.
i several apps that need that signal to clean up after themselves and
everytime i reboot i must go through cleaning up the disk. if i issue a
“kill -SIGTERM pid” and then shutdown or if i just use the “shutdown”
command (not pleasing to the eye or inline with the gui use) everything is
fine when i reboot. any ideas on what is happening here? thanks.

ross

“GUI Group” <gui@qnx.com> wrote in message news:3C4DB5A6.40505@qnx.com

Hi Ross,

I checked with the developer

For a Photon shutdown:

  • apps get hit with TERM
  • Photon gets hit with HUP if logged in form phlogin, otherwise TERM

Hope this helps
Regards
Brenda

Ross Brantner wrote:

First let me describe my system setup, I have QNX 4.25 with Photon 1.14
and
it is set to boot directly into Photon and when exiting Photon you have
no
option to exit to the terminal only the “Shutdown” button.

What I am trying to do is have a program perform some cleanup when you
tell
Photon to shutdown at the login window. However, I do not know what
signal
I should listen for or for that matter what signal is generated.

If anyone knows what signals Photon raises as a user logs in, logs out
and
shutsdown Photon that would be extrememly helpful. Thanks.

ross
\

Hi Ross,

Sorry about that it looks like it gets hit with a SIGHUP and not
SIGTERM. A simple way to find out for sure would be to add a signal
proc sensitive to all signals, and in the signal proc print out the
values of the signals your’re getting hit with. See the docs for
PtAppAddSignalProc for more info

Regards
Brenda


Ross Brantner wrote:

for some reason i am not getting any SIGTERM’s when i shutdown from Photon.
i several apps that need that signal to clean up after themselves and
everytime i reboot i must go through cleaning up the disk. if i issue a
“kill -SIGTERM pid” and then shutdown or if i just use the “shutdown”
command (not pleasing to the eye or inline with the gui use) everything is
fine when i reboot. any ideas on what is happening here? thanks.

ross

“GUI Group” <> gui@qnx.com> > wrote in message news:> 3C4DB5A6.40505@qnx.com> …

Hi Ross,

I checked with the developer

For a Photon shutdown:

  • apps get hit with TERM
  • Photon gets hit with HUP if logged in form phlogin, otherwise TERM

Hope this helps
Regards
Brenda

Ross Brantner wrote:


First let me describe my system setup, I have QNX 4.25 with Photon 1.14

and

it is set to boot directly into Photon and when exiting Photon you have

no

option to exit to the terminal only the “Shutdown” button.

What I am trying to do is have a program perform some cleanup when you

tell

Photon to shutdown at the login window. However, I do not know what

signal

I should listen for or for that matter what signal is generated.

If anyone knows what signals Photon raises as a user logs in, logs out

and

shutsdown Photon that would be extrememly helpful. Thanks.

ross


\