Specs:
-using QNX4.25
-running an applicatiion written in C
-application was exited and the OS was shutdown immediately after the
applicatioin just by turning the power off to the unit
-unit was power back on after 30 seconds in network mode.
-tried to copy the logfiles generated by the application to another node,
but received a “Corrupted System Error.”
-3 seconds of data for the File Cache
Question:
If the Application was exited, the QNX button/Shutdown selected, and then
the power to the unit cycled off 10 seconds later, would that ensure the
logfiles are written to properly instead of just cutting off the power to
the unit?
Thanks,
Paul O’Reilly, Software
Neptec Design Group Ltd.
613-599-7603 Ext 233
Email: poreilly@neptec.com
Specs:
-using QNX4.25
-running an applicatiion written in C
-application was exited and the OS was shutdown immediately after the
applicatioin just by turning the power off to the unit
-unit was power back on after 30 seconds in network mode.
What do you mean by network mode? Is the HD being written to
local or over the network?
-tried to copy the logfiles generated by the application to another node,
but received a “Corrupted System Error.”
-3 seconds of data for the File Cache
Question:
If the Application was exited, the QNX button/Shutdown selected, and then
the power to the unit cycled off 10 seconds later, would that ensure the
logfiles are written to properly instead of just cutting off the power to
the unit?
Even better would be to let your application handle SIGPWR and close
the log file.
Mario
Thanks,
Paul O’Reilly, Software
Neptec Design Group Ltd.
613-599-7603 Ext 233
Email: > poreilly@neptec.com
\
The application is run in standalone mode, so the logfiles are written to
the HD locally. It is when I want to transfer the files to another node I
have to restart the system in Network Mode.
Is the Shutdown Utility the only way to invoke SIGPWR?
Mario Charest wrote in message <9n2sot$hfm$1@inn.qnx.com>…
Specs:
-using QNX4.25
-running an applicatiion written in C
-application was exited and the OS was shutdown immediately after the
applicatioin just by turning the power off to the unit
-unit was power back on after 30 seconds in network mode.
What do you mean by network mode? Is the HD being written to
local or over the network?
-tried to copy the logfiles generated by the application to another node,
but received a “Corrupted System Error.”
-3 seconds of data for the File Cache
Question:
If the Application was exited, the QNX button/Shutdown selected, and then
the power to the unit cycled off 10 seconds later, would that ensure the
logfiles are written to properly instead of just cutting off the power to
the unit?
Even better would be to let your application handle SIGPWR and close
the log file.
Mario
Thanks,
Paul O’Reilly, Software
Neptec Design Group Ltd.
613-599-7603 Ext 233
Email: > poreilly@neptec.com
The application is run in standalone mode, so the logfiles are written to
the HD locally. It is when I want to transfer the files to another node I
have to restart the system in Network Mode.
Is the Shutdown Utility the only way to invoke SIGPWR?
No you can send a SIGPWR vial the slay or kill command.
Or from within a program using raise() or kill().
Mario Charest wrote in message <9n2sot$hfm$> 1@inn.qnx.com> >…
Specs:
-using QNX4.25
-running an applicatiion written in C
-application was exited and the OS was shutdown immediately after the
applicatioin just by turning the power off to the unit
-unit was power back on after 30 seconds in network mode.
What do you mean by network mode? Is the HD being written to
local or over the network?
-tried to copy the logfiles generated by the application to another
node,
but received a “Corrupted System Error.”
-3 seconds of data for the File Cache
Question:
If the Application was exited, the QNX button/Shutdown selected, and
then
the power to the unit cycled off 10 seconds later, would that ensure
the
logfiles are written to properly instead of just cutting off the power
to
the unit?
Even better would be to let your application handle SIGPWR and close
the log file.
Mario
Thanks,
Paul O’Reilly, Software
Neptec Design Group Ltd.
613-599-7603 Ext 233
Email: > poreilly@neptec.com