Menu

#25 Add ability to modify argv[0] of the started program

open
nobody
None
2013-09-21
2012-10-10
No

In order to launch login shells properly with dmtcp_checkpoint, it would be good to have an option (like the -a options to bash's exec) to set the argv[0] value of the started process. e.g.:

dmtcp_checkpoint -a -bash /bin/bash script

Discussion

  • Orion Poplawski

    Orion Poplawski - 2012-10-11

    Patch to add -a opton

     
  • Orion Poplawski

    Orion Poplawski - 2012-10-11

    This at least compiles and appears to work in a quick test. Not sure if using a new environment variable is the way to go.

     
  • Orion Poplawski

    Orion Poplawski - 2012-10-11

    BTW - the patch applies to current trunk

     
  • Kapil Arya

    Kapil Arya - 2013-09-21

    Ticket moved from /p/dmtcp/feature-requests/3/

     

Log in to post a comment.