Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[SSI] openssi/kernel/drivers/char pty.c,1.2.2.2.2.1,1.2.2.2.2.2 tty_io.c,1.: msg#00089

Subject: [SSI] openssi/kernel/drivers/char pty.c,1.2.2.2.2.1,1.2.2.2.2.2 tty_io.c,1.2.2.6,1.2.2.6.2.1
Update of /cvsroot/ssic-linux/openssi/kernel/drivers/char
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20410/kernel/drivers/char

Modified Files:
      Tag: OPENSSI-RH-1-0-STABLE
        pty.c tty_io.c 
Log Message:
M openssi/kernel/cluster/ssi/util/ssipty.c
M openssi/kernel/cluster/ssi/vproc/dvp_vpops.c
M openssi/kernel/drivers/char/pty.c
M openssi/kernel/drivers/char/tty_io.c
M openssi/kernel/fs/namespace.c
M openssi/kernel/fs/proc/proc_cluster.c
        Fix pty problems and bugs related to calling path_release() after
        an error occurred.


Index: tty_io.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/drivers/char/Attic/tty_io.c,v
retrieving revision 1.2.2.6
retrieving revision 1.2.2.6.2.1
diff -u -d -r1.2.2.6 -r1.2.2.6.2.1
--- tty_io.c    28 Apr 2004 20:50:29 -0000      1.2.2.6
+++ tty_io.c    24 Aug 2004 21:02:21 -0000      1.2.2.6.2.1
@@ -1426,6 +1426,18 @@
        run_task_queue(&tq_timer);
        flush_scheduled_tasks();
 
+#ifdef CONFIG_SSI
+       /* Inform server only when both sides have closed. */
+       if (pty_master)
+               (void)ssipty_put_pty(MINOR(tty->device) -
+                                    tty->driver.minor_start +
+                                    tty->driver.name_base);
+       else if (o_tty && o_tty->driver.type == TTY_DRIVER_TYPE_PTY &&
+                o_tty->driver.subtype == PTY_TYPE_MASTER)
+               (void)ssipty_put_pty(MINOR(o_tty->device) -
+                                    o_tty->driver.minor_start +
+                                    o_tty->driver.name_base);
+#endif
        /* 
         * The release_mem function takes care of the details of clearing
         * the slots and preserving the termios structure.

Index: pty.c
===================================================================
RCS file: /cvsroot/ssic-linux/openssi/kernel/drivers/char/Attic/pty.c,v
retrieving revision 1.2.2.2.2.1
retrieving revision 1.2.2.2.2.2
diff -u -d -r1.2.2.2.2.1 -r1.2.2.2.2.2
--- pty.c       21 May 2004 18:19:44 -0000      1.2.2.2.2.1
+++ pty.c       24 Aug 2004 21:02:20 -0000      1.2.2.2.2.2
@@ -94,21 +94,16 @@
        set_bit(TTY_OTHER_CLOSED, &tty->link->flags);
        if (tty->driver.subtype == PTY_TYPE_MASTER) {
                set_bit(TTY_OTHER_CLOSED, &tty->flags);
+#ifndef CONFIG_SSI
 #ifdef CONFIG_UNIX98_PTYS
                {
                        unsigned int major = MAJOR(tty->device) - 
UNIX98_PTY_MASTER_MAJOR;
                        if ( major < UNIX98_NR_MAJORS ) {
-#ifdef CONFIG_SSI
-                               (void)ssipty_put_pty( MINOR(tty->device) -
-                                                     tty->driver.minor_start +
-                                                     tty->driver.name_base );
-#endif
                                devpts_pty_kill( MINOR(tty->device)
                          - tty->driver.minor_start + tty->driver.name_base );
                        }
                }
 #endif
-#ifndef CONFIG_SSI
                tty_unregister_devfs (&tty->link->driver, MINOR (tty->device));
 #endif
                tty_vhangup(tty->link);



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation