Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix foreground process group on restart #904

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Mar 31, 2021

  1. Add tcgetpgrp

     * This utility required to reset foregroup pgrp as needed in src/terminal.cpp.
    gc00 committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    cd06aab View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2021

  1. Add _libc_pgrp()

     * This utility required to reset foregroup pgrp as needed in src/terminal.cpp.
    gc00 committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    fb9c167 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63cec14 View commit details
    Browse the repository at this point in the history
  3. Fix foreground process group on restart

         * Sometimes 'dmtcp_launch' is called from inside a shell script
           (e.g., for a batch job).  In this case, on restart, the foreground
           process group leader is the restarted process, and yet the
           process group leader is the parent (presumably the login shell).
           So, the foreground process group leader is not the leader of a
           process group.  To fix this, we set the process group leader to
           also be the leader of the foreground process group.
    gc00 committed Apr 3, 2021
    Configuration menu
    Copy the full SHA
    8c4c464 View commit details
    Browse the repository at this point in the history