disallow creation of files in removed directories
[unix-history] / usr / src / sys / netccitt / pk_timer.c
index d1ade45..29363a2 100644 (file)
@@ -9,7 +9,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)pk_timer.c  7.3 (Berkeley) %G%
+ *     @(#)pk_timer.c  7.5 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -63,8 +63,9 @@ pk_timer ()
                                switch (lcp -> lcd_state) {
                                case SENT_CALL: 
                                        if (--lcp -> lcd_timer == 0) {
                                switch (lcp -> lcd_state) {
                                case SENT_CALL: 
                                        if (--lcp -> lcd_timer == 0) {
+                                           if (lcp -> lcd_so)
                                                lcp -> lcd_so -> so_error = ETIMEDOUT;
                                                lcp -> lcd_so -> so_error = ETIMEDOUT;
-                                               pk_clear (lcp);
+                                           pk_clear (lcp, 49, 1);
                                        }
                                        break;
 
                                        }
                                        break;
 
@@ -73,7 +74,7 @@ pk_timer ()
                                                lcns_jammed++;
                                        else
                                                if (--lcp -> lcd_timer == 0)
                                                lcns_jammed++;
                                        else
                                                if (--lcp -> lcd_timer == 0)
-                                                       pk_clear (lcp);
+                                                       pk_clear (lcp, 50, 1);
                                        break;
 
                                case DATA_TRANSFER:     /* lcn active */
                                        break;
 
                                case DATA_TRANSFER:     /* lcn active */