Skip to content

Commit

Permalink
FvwmButtons: stop listening for incoming TCP connections
Browse files Browse the repository at this point in the history
  • Loading branch information
vladrich authored and ThomasAdam committed May 29, 2024
1 parent 5d6c045 commit f036638
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@ if test ! x"$with_sm" = xno; then
AC_CHECK_LIB(SM, SmcOpenConnection, with_sm=yes; AC_DEFINE(SESSION),
with_sm=no; problem_sm=": Failed to detect libSM",
[$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS])
ac_LIBS="$LIBS"
LIBS="$LIBS -lICE"
AC_CHECK_FUNCS([_IceTransNoListen])
LIBS="$ac_LIBS"
fi
dnl AC_SUBST(sm_LIBS)
dnl AC_SUBST(sm_CFLAGS)
Expand Down
6 changes: 6 additions & 0 deletions libs/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,12 @@ int fsm_init(char *module)
return 0;
}


#ifdef HAVE__ICETRANSNOLISTEN
_IceTransNoListen("tcp");
#endif


if (!FIceListenForConnections (
&numTransports, &slistenObjs, 256, errormsg))
{
Expand Down

0 comments on commit f036638

Please sign in to comment.