6838950 normal printjobs are not printed after unmount of form
authorsonam gupta - Sun Microsystems - Bangalore India <Sonam.Gupta@Sun.COM>
Fri, 09 Apr 2010 00:01:50 +0530
changeset 12104 33b010e1a1d5
parent 12103 4bfaecc9ce31
child 12105 9267512a9dc5
6838950 normal printjobs are not printed after unmount of form
usr/src/cmd/lp/cmd/lpsched/disp3.c
--- a/usr/src/cmd/lp/cmd/lpsched/disp3.c	Thu Apr 08 22:09:02 2010 -0700
+++ b/usr/src/cmd/lp/cmd/lpsched/disp3.c	Fri Apr 09 00:01:50 2010 +0530
@@ -20,16 +20,13 @@
  */
 
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
- * Use is subject to license terms.
+ * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
 /*	  All Rights Reserved  	*/
 
 
-#pragma ident	"%Z%%M%	%I%	%E% SMI"
-
 #include "dispatch.h"
 #include <syslog.h>
 
@@ -56,7 +53,7 @@
 		register FSTATUS	*Opfs	= pps->forms[trayNum].form;
 
 		pps->forms[trayNum].form = 0;
-		pps->forms[trayNum].isAvailable = 0;
+		pps->forms[trayNum].isAvailable = 1;
 		Opfs->mounted--;
 
 		/*
@@ -267,7 +264,7 @@
 
 			for (i = pps->numForms; i < numTrays; i++) {
 				ppfs[i].form = NULL;
-				ppfs[i].isAvailable = 0;
+				ppfs[i].isAvailable = 1;
 			}
 			pps->forms = ppfs;
 			pps->numForms = numTrays;