Re: [as-devel] read() on a socket in *BSD

Frederick Bruckman (fb@enteract.com)
Fri, 25 Jun 1999 11:45:34 -0500 (CDT)


On Sat, 19 Jun 1999, Ethan wrote:

> Thanks!  That was exactly the problem - it works much better for me now.  
> I'm attaching my patch B which does much the same thing your patch does.  
> Mine also changes the code to set non-blocking mode exactly once, when 
> the socket is first opened.

Just one more little thing...

Without the following, the window id is never given to SendInfo().
Wharf and Pager mostly work, but WinList fails miserably!

Also, here's a clean-up to Makefile.in.

--- src/afterstep/module.c.orig	Thu Jun 24 06:46:05 1999
+++ src/afterstep/module.c	Fri Jun 25 05:35:41 1999
@@ -435,6 +435,9 @@
   /* done reading command */
   Module[channel].ibuf.done = 0;
 
+  /* set window id */
+  w = Module[channel].ibuf.window;
+
   /* null-terminate the command line */
   text = Module[channel].ibuf.text;
   text[Module[channel].ibuf.size] = '\0';
--- Makefile.in.orig	Fri Jun 18 07:37:45 1999
+++ Makefile.in	Fri Jun 18 12:20:48 1999
@@ -46,7 +46,14 @@
 	$(CP) -r afterstep $(AFTER_SHAREDIR)/../
 	$(RMF) $(AFTER_SHAREDIR)/*.in
 	$(RMF) $(AFTER_SHAREDIR)/non-configurable/*.in
+	$(RMF) $(AFTER_SHAREDIR)/start/.include.in
+	$(RMF) $(AFTER_SHAREDIR)/start/Desktop/Feel/.include.in
+	$(RMF) $(AFTER_SHAREDIR)/start/Desktop/Look/.include.in
+	$(RMF) $(AFTER_SHAREDIR)/start/Desktop/Pictures/.include.in
 	$(RMF) $(AFTER_SHAREDIR)/*.orig
+	$(RMF) $(AFTER_SHAREDIR)/*/*.orig
+	$(RMF) $(AFTER_SHAREDIR)/*/*/*.orig
+	$(RMF) $(AFTER_SHAREDIR)/*/*/*/*.orig
 
 uninstall:
 	@for I in ${subdirs}; do (cd $$I; ${MAKE} uninstall || exit 1); done