search for: sock_fd

Displaying 16 results from an estimated 16 matches for "sock_fd".

2007 Jan 23
2
Re: [nut-commits] svn commit r731
...vice); > > - for (rtmp = r; r != NULL; r = r->ai_next) { > - ups->fd = socket (r->ai_family, r->ai_socktype, r->ai_protocol); > - if (ups->fd < 0) { > - if (r->ai_next == NULL) { > + for (ai = res; ai != NULL; ai = ai->ai_next) > + { > + int sock_fd, v; > + > + if (ai->ai_socktype != hints.ai_socktype || ai->ai_protocol != hints.ai_protocol) > + continue; > + > + if ((sock_fd = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol)) < 0) > + { > + switch (errno) > + { > + case EAFNOSUPPO...
2008 May 20
7
Problems sending large results with backgroundrb
I''m working on an application that does extensive database searching. These searches can take a long time, so we have been working on moving the searches to a backgroundrb worker task so we can provide a sexy AJAX progress bar, and populate the search results as they are available. All of this seems to work fine until the size of the search results gets sufficiently large, when we start
2014 Mar 13
0
Help with Possible Bug in Samba 4.1.5 on Connection Close
...t_loop_once(ev = 0x2000b2f8, location = "../source3/smbd/process.c:3626"), line 303 in "events.c" _tevent_loop_once(ev = 0x2000b2f8, location = "../source3/smbd/process.c:3626"), line 530 in "tevent.c" smbd_process(ev_ctx = 0x2000b2f8, msg_ctx = 0x2000b378, sock_fd = 40, interactive = @0x00000000), line 3626 in "process.c" unnamed block in smbd_accept_connection(ev = 0x2000b2f8, fde = 0x200c1598, flags = 1, private_data = 0x200c1548), line 621 in "server.c" smbd_accept_connection(ev = 0x2000b2f8, fde = 0x200c1598, flags = 1, private_dat...
2017 Apr 18
0
Crash on samba-server(4.4) .. Some Queries
...t;) at ../tevent.c:533 #13 0x00007f8e1e8125ab in tevent_common_loop_wait (ev=0x7f8e24691b30, location=0x7f8e21fc6b40 "../source3/smbd/process.c:4117") at ../tevent.c:637 #14 0x00007f8e21e7c6d1 in smbd_process (ev_ctx=ev_ctx at entry=0x7f8e24691b30, msg_ctx=msg_ctx at entry=0x7f8e24691c20, sock_fd=sock_fd at entry=39, interactive=interactive at entry=false) at ../source3/smbd/process.c:4117 #15 0x00007f8e22965304 in smbd_accept_connection (ev=0x7f8e24691b30, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../source3/smbd/server.c:762 #16...
2014 Jun 15
2
Re: ERROR: Domain not found: no domain with matching name 'ubuntu'
...ies use -device ? to print all possible drivers use -device driver,? to print all possible properties File system options: -fsdev fsdriver,id=id[,path=path,][security_model={mapped-xattr|mapped-file|passthrough|none}] [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd] Virtual File system pass-through options: -virtfs local,path=path,mount_tag=tag,security_model=[mapped-xattr|mapped-file|passthrough|none] [,writeout=immediate][,readonly][,socket=socket|sock_fd=sock_fd] -virtfs_synth Create synthetic file system image -name string1[,process=stri...
2014 Jun 12
3
ERROR: Domain not found: no domain with matching name 'ubuntu'
Hi guys, I am new to QEMU-KVM, libvmi and libvirt stuff. Libvmi uses libvirt. I am trying to to run process-list example of libvmi and getting error as below. It seems that this error may be due to libvirt as it is not able to find domain. I seek your kind help on below error: spanhal1@seclab2:~/KVMModule/libvmi-0.10.1$ sudo ./examples/process-list ubuntu libvir: QEMU error : Domain not found:
2014 Jan 10
1
samba 4.1.3 -- multiple bugs & 1, 297 coredumps -- coredump backtrace + full-backtrace included
...5360, location=<optimized out>) at ../source3/lib/events.c:326 #18 0x00007f6cb2a68c0d in _tevent_loop_once () from /usr/lib/x86_64-linux-gnu/libtevent.so.0 #19 0x00007f6cb51d26b0 in smbd_process (ev_ctx=ev_ctx at entry=0x7f6cb69a5360, msg_ctx=msg_ctx at entry=0x7f6cb69a5450, sock_fd=sock_fd at entry=34, interactive=interactive at entry=false) at ../source3/smbd/process.c:3627 #20 0x00007f6cb5c4b084 in smbd_accept_connection (ev=0x7f6cb69a5360, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../source3/smbd/server...
2018 Oct 05
2
Samba Panic when accessing share from OSX
...t ../tevent.c:849 #21 0x00007f5af61ed2d7 in std_event_loop_wait (ev=0x55f77ed45710, location=0x7f5af96108f8 "../source3/smbd/process.c:4127") at ../tevent_standard.c:145 #22 0x00007f5af94e7584 in smbd_process (ev_ctx=ev_ctx at entry=0x55f77ed45710, msg_ctx=msg_ctx at entry=0x55f77ed46580, sock_fd=sock_fd at entry=34, interactive=interactive at entry=false) at ../source3/smbd/process.c:4127 #23 0x000055f77e69f1d4 in smbd_accept_connection (ev=0x55f77ed45710, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../source3/smbd/server.c:1030 #24 0x0000...
2010 Dec 03
1
[PATCH] upsd tcp_wrappers parsing and logging
...sd.c @@ -410,11 +410,13 @@ static void check_command(int cmdnum, ctype_t *client, int numarg, } #ifdef HAVE_WRAP - request_init(&req, RQ_DAEMON, progname, RQ_CLIENT_ADDR, client->addr, RQ_USER, client->username, 0); + request_init(&req, RQ_DAEMON, progname, RQ_FILE, client->sock_fd, 0); + fromhost(&req); if (!hosts_access(&req)) { /* tcp-wrappers says access should be denied */ send_err(client, NUT_ERR_ACCESS_DENIED); + upslogx(deny_severity, "tcp_wrappers denied connection from %s", eval_client(&req)); return; } #endif /* HAVE_WR...
2006 Jan 27
0
Suspend-to-disk & NUT (solved!)
..._dead()' is used to update the driver state. This is where the actual problem is located: > int sstate_dead(upstype *ups, int maxage) > { > time_t now; > double elapsed; > > /* an unconnected ups is always dead */ > if (ups->sock_fd == -1) > return 1; /* dead */ > > time(&now); > > /* ignore DATAOK/DATASTALE unless the dump is done */ > if (ups->dumpdone) > if (!ups->data_ok) > return 1; /* dead */ &g...
2007 Apr 18
0
[Bridge] BCP code ported to pppd 2.4.2
...0 2004 +++ ppp-2.4.2-bcp/pppd/sys-linux.c Thu Apr 7 00:02:12 2005 @@ -1840,6 +1840,30 @@ } /* + * set_if_hwaddr - set the hardware address for the specified + * network interface device. + */ +int +set_if_hwaddr(const u_char *addr, const char *name) +{ + struct ifreq ifreq; + int ret, sock_fd; + + sock_fd = socket(AF_INET, SOCK_DGRAM, 0); + if (sock_fd < 0) + return 0; + memset(&ifreq.ifr_hwaddr, 0, sizeof(struct sockaddr)); + strlcpy(ifreq.ifr_name, name, sizeof(ifreq.ifr_name)); + ret = ioctl(sock_fd, SIOCGIFHWADDR, &ifreq); + if (ret >= 0) {...
2013 Oct 14
1
Samba is still crashing
...=0xec5c18 "../source3/smbd/process.c:3627") at ../source3/lib/events.c:326 #26 0x008a8133 in _tevent_loop_once (ev=0x14138e0, location=0xec5c18 "../source3/smbd/process.c:3627") at ../lib/tevent/tevent.c:530 #27 0x00d581ab in smbd_process (ev_ctx=0x14138e0, msg_ctx=0x1413960, sock_fd=44, interactive=false) at ../source3/smbd/process.c:3627 #28 0x004376d1 in smbd_accept_connection (ev=0x14138e0, fde=0xad132a98, flags=1, private_data=0xad1a1cb8) at ../source3/smbd/server.c:621 #29 0x0083b82c in run_events_poll (ev=0x14138e0, pollrtn=1, pfds=0xad198ce0, num_pfds=6) at ../source3...
2018 Jun 25
2
Samba 4.7.1 Generating Core Dumps
..."../source3/smbd/process.c:4127") at ../tevent_standard.c:145 glue_ptr = <optimized out> glue = 0x55b48e5f3650 ret = <optimized out> #34 0x00007fc228359444 in smbd_process (ev_ctx=ev_ctx at entry=0x55b48e5f3520, msg_ctx=msg_ctx at entry=0x55b48e5f44a0, sock_fd=sock_fd at entry=42, interactive=interactive at entry=false) at ../source3/smbd/process.c:4127 trace_state = {ev = 0x55b48e5f3520, frame = 0x55b48e61ca40, profile_idle = {start = 0, stats = 0x0}} client = 0x55b48e627ab0 sconn = 0x55b48e61fc30 xconn = 0x55b48e5fa480 -...
2015 Apr 21
0
samba-4.2.0 join samba3 PDC
...rocess.c:3992") at ../lib/tevent/tevent.c:637 #39 0x00007f4802191c61 in _tevent_loop_wait (ev=0x7f48048a5a50, location=0x7f4802ca3bb0 "../source3/smbd/process.c:3992") at ../lib/tevent/tevent.c:656 #40 0x00007f4802b1dbe4 in smbd_process (ev_ctx=0x7f48048a5a50, msg_ctx=0x7f48048a5b40, sock_fd=40, interactive=false) at ../source3/smbd/process.c:3992 #41 0x00007f48035e8374 in smbd_accept_connection (ev=0x7f48048a5a50, fde=0x7f48048b9b60, flags=1, private_data=0x7f48048b9ad0) at ../source3/smbd/server.c:627 #42 0x00007f4800c0097e in run_events_poll (ev=0x7f48048a5a50, pollrtn=1, pfds=0x7f4...
2007 Apr 18
7
[Bridge] (no subject)
Dear Sir, I was trying to install bridge as we are installing scps gateway in our testbed.This requires us to install the bridge. Our Linux version is 2.4.18 ~3 and we are using redhat 7.2 Please let me know which is the bridge I should install and how to configure it. Before configuring the bridge what I should check in my configuration. Thanks for your time, Sincerely Rama ===== I hear
2016 Feb 15
1
Crash (talloc error) after failed chdir
...ents.c:303 #23 0x00007f44127d8a4d in _tevent_loop_once () from /usr/lib/x86_64-linux-gnu/libtevent.so.0 #24 0x00007f44127d8beb in tevent_common_loop_wait () from /usr/lib/x86_64-linux-gnu/libtevent.so.0 #25 0x00007f4415804ee9 in smbd_process (ev_ctx=0x55b775cf9390, msg_ctx=<optimized out>, sock_fd=50, interactive=<optimized out>) at ../source3/smbd/process.c:4031 #26 0x000055b773b3c726 in smbd_accept_connection (ev=0x55b775cf9390, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out>) at ../source3/smbd/server.c:646 #27 0x00007f4413b8145c in run_...