You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GASPI command gaspi_proc_kill kills a remote process. However the return code of the killed process is unspecified. In GPI2 the remote process calls exit(-1) so an error code is set.
This results in a test failure when this error code is propagated.
Suggestion: As gaspi_proc_kill is a user request to terminate the process, it should not return an error code. So call exit(0) instead.
The text was updated successfully, but these errors were encountered:
gaspi_proc_kill sends an interrupt signal to the Gaspi process incorporating the rank given by parameter rank . This can be used, for example, to realise(sic!) the registration of a user defined signal handler function which ensures the controlled shut down of an entire Gaspi application at the global level if the application receives an interrupt signal ( STRG + C ) in the interactive master process.
Every application should register such or a similar signal handler (c. f. listing 9).
In case of successful procedure completion, i. e. return value GASPI_SUCCESS , the remote
process has been terminated.
In this case I'm even escalating this as a bug in GPI2 that it does not adhere to the spec and simply calls exit(-1) instead of sending SIGINT:
Hence there will be a process with non-zero exitcode spawned by the testsuite which may or may not make the test-fail depending on whether the error-code is propagated to the spawner/gaspi_run
The GASPI command
gaspi_proc_kill
kills a remote process. However the return code of the killed process is unspecified. In GPI2 the remote process callsexit(-1)
so an error code is set.This results in a test failure when this error code is propagated.
Suggestion: As
gaspi_proc_kill
is a user request to terminate the process, it should not return an error code. So callexit(0)
instead.The text was updated successfully, but these errors were encountered: