[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: a47fe9c63768866a581ded2088d2b6ae29a73018

X2Go dev team git-admin at x2go.org
Sat Apr 27 13:45:28 CEST 2013


The branch, build-main has been updated
       via  a47fe9c63768866a581ded2088d2b6ae29a73018 (commit)
      from  f089f99d613078f8cbc03a5b7291497628aaec65 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 src/pam-freerdp.c |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 189c82f..1307990 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -176,13 +176,19 @@ done:
 	return retval;
 }
 
+pid_t session_pid = 0;
 /* Open Session.  Here we need to fork a little process so that we can
    give the credentials to the session itself so that it can startup the
    xfreerdp viewer for the login */
 PAM_EXTERN int
 pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char **argv)
 {
-     return PAM_IGNORE;
+	if (session_pid != 0) {
+		kill(session_pid, SIGKILL);
+		session_pid = 0;
+	}
+
+    return PAM_IGNORE;
 }
 
 /* Close Session.  Make sure our little guy has died so he doesn't become
@@ -190,6 +196,11 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char **argv)
 PAM_EXTERN int
 pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv)
 {
+	if (session_pid != 0) {
+		kill(session_pid, SIGKILL);
+		session_pid = 0;
+	}
+
 	return PAM_IGNORE;
 }
 


hooks/post-receive
-- 
libpam-x2go.git (Remote login session via X2Go (PAM module))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).




More information about the x2go-commits mailing list