similar to: Python resource module returns just zeros

Displaying 20 results from an estimated 1000 matches similar to: "Python resource module returns just zeros"

2006 Mar 02
1
Failing to understand getrusage()
I'm failing to understand how getrusage() works, which is a bit perplexing, because it doesn't seem like it would be terribly complicated. I've attached the code. My aim is to verify that I can use getrusage() to do (admittedly crude) instrumentation of which functions in my program are allocating lots of memory[1]. So I figure I can call getrusage() at various points and look at
2009 Mar 10
0
Re: ldap group authentication refresh [SOLVED]
Hi, I resolved the problem. I changed my smb.conf as follows: [global] netbios name = SAMBA server string = %h workgroup = DOMAIN.TLD security = user encrypt passwords = true ldap passwd sync = yes guest account = nobody passdb backend = ldapsam:ldap://zarafa.hasselt.be ldap admin dn = cn=root,ou=hasselt.be,o=hasselt,c=be ldap suffix = o=hasselt,c=be ldap group suffix = ou=groups ldap user
2009 Apr 28
0
ACL problem under FC9
On Fri, March 13, 2009 11:07, Christos Karaviotis wrote: > On Wed, March 11, 2009 14:26, Adam Tauno Williams wrote: >>> I am running Samba for some years now (3 years) and had absolutely no >>> problems. For the last month on one of the machines the NT ACL stopped >>> working and everyone have full access everywhere even if they are not >>> in >>>
2009 Aug 12
0
Problem with Linux x86_64 RODBC and Netezza (PR#13889)
Full_Name: Kenneth Cater Version: 2.9.1 OS: Linux x86_64 Submission from: (NULL) (171.159.192.10) It appears that R closes my connection to the Netezza device before the Netezza has completed its return of data, below are two files clean_test.log which tracks the systems call made when running the test.r file, and clean_test.out which is the output generated when test.r is executed. Notice how
2000 Jun 15
1
problem in entropy.c if no getrusage
entropy.c assumes RUSAGE_SELF and RUSAGE_CHILDREN *** entropy.c.orig Thu Jun 15 13:57:28 2000 --- entropy.c Thu Jun 15 13:58:25 2000 *************** *** 201,207 **** --- 201,209 ---- total_entropy_estimate += stir_gettimeofday(1.0); total_entropy_estimate += stir_clock(0.2); + #ifdef HAVE_GETRUSAGE total_entropy_estimate += stir_rusage(RUSAGE_SELF, 2.0); + #endif
2012 Feb 13
0
samba Digest, Vol 110, Issue 12
Hello Williams Thanks for your prompt help, well valid user and write-list were define as got to read but still got confused so can you share me the link of the standard document or mail me that document so that i can go through it and implement on the given scenario. Or if you can share any example configuration then it will be great. I hope for help from you and all experts. Thank You Regards
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
Hi, dovecot tries to use OpenSSL's PRNG to generate random numbers if there is no /dev/urandom found. Unfortunately, it is flawed in its present form, since the PRNG is not seeded before RAND_bytes() is called in src/lib/randgen.c (on systems which have /dev/urandom, OpenSSL automatically seeds its PRNG from the urandom device). Here's a patch to address this issue: it tries to seed
2023 Jan 14
1
[klibc:time64] resource: Avoid using <linux/resource.h>
Commit-ID: d4ab7343978bbec7141f8462236ba6a47574205f Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=d4ab7343978bbec7141f8462236ba6a47574205f Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Sat, 14 Jan 2023 03:15:20 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 14 Jan 2023 18:09:28 +0100 [klibc] resource: Avoid using
2018 Sep 07
1
rsyslog listening on high port
On Thu, 2018-09-06 at 15:10 -0400, Mike Burger wrote: > On 2018-09-06 14:06, Adam Tauno Williams wrote: > > Attempting to lookup why rsyslogd is listening on the high port > > UDP/51427.????Have not succeeded in what this port is used for and > > what directive controls what interface it binds to. > > [root at bedrock ~]# netstat --listen --inet --program --numeric |
2012 Mar 07
1
Anyone recognize "www-mysql"?
I'm transitioning someone's quite old server [Debian] to a new CentOS6 host. All going pretty well. But they server up some functionality using CGI scripts via Apache that use something referred to on the Debian box as the www-mysql package? This a binary that executes HTML pages containing embedded SQL statements. Anyone know where the source for this can be found or if it has a more
2012 Feb 17
1
Race Condition In PHP Session Handler
php-5.3.3-3.el6_2.6.x86_64 2.6.32-220.4.2.el6.x86_64 After some testing we moved our production PHP intranet site from an old server to a new CentOS 6.2 instance running the mentioned versions. At first it worked well and then user's started to experience a hung site. Upon some digging it appears that the PHP module is getting stuck in a race condition regarding the sessions file - [root at
2018 Apr 24
1
Libreswan IPSec Protected GRE Tunnel & firewall-cmd
I am attempting to setup an IPSec protected GRE tunnel with a Cisco router. I believe the IPSec association is up, however I cannot move traffic over the tunnel. It is not clear how to integrate the tunnel interface (gre1) with firewall-cmd; adding the interface to trusted does not appear to 'stick'. [root at aqueduct ~]# firewall-cmd --add-interface=gre1 --zone=trusted The interface
2013 Sep 11
0
Crashing Server [_spin_unlock_irqrestore+0x17/0x20]
I have a CentOS server that after the latest round of updates has begun crashing [dump, reboot] 2.6.32-358.18.1.el6.centos.plus.x86_64 The dmesg dump in /var/crash looks like the following; does anyone recognize that? <6>RPC: Registered udp transport module. <6>RPC: Registered tcp transport module. <6>RPC: Registered tcp NFSv4.1 backchannel transport module.
2007 Jun 17
1
Samba vscan VFS Module
I'm trying to configure Samba's vscan on-access VFS module on a box with a working CLAM installation. [CLAM is merrily scanning mail on this box via clamav-milter]. I've set this up before, but this time it seems to be giving me grief. If I remove the vscan-clamav module then everything works, and I can open files. When I try to open a file with the module enable I just get a file
2018 May 16
1
Persisting Routes In A Routing Table Other Than The Default
On Tue, 2018-05-15 at 13:04 -0500, Chris Adams wrote: > Once upon a time, Adam Tauno Williams <awilliam at whitemice.org> said: > > Rules load automatically via the /etc/sysconfig/network- > > scripts/rules- > > {interface} files.??Routes added to /etc/sysconfig/network- > > scripts/routes-{interface} are always added to the default policy. > What are you
2016 Mar 13
0
Failed to modify SPNs on error in module acl: Constraint violation during LDB_MODIFY (19)
Am Donnerstag, 10. März 2016, 10:41:34 CET schrieb mathias dufresne: Hi, Mathias and all thank you for your answer. > Hi all, > > SPN = servicePrincipalName > > A simple search returning all servicePrincipalName declared in your AD: > ldbsearch -H $sam serviceprincipalname=* serviceprincipalname > For me: ldbsearch -H /var/lib/samba/private/sam.ldb serviceprincipalname=*
2014 Dec 21
0
yum upgrade not working
On 21/12/14 02:25, Tim Dunphy wrote: > Hey all, > > I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10. > > But when I try the yum update command I get this response: > > --> Finished Dependency Resolution > python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems > --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by
2012 Feb 09
2
python26-memcached on centOS 5.5
Hi, Is anyone here running memcached + python2.6 + django setup on a CentOS 5.5?? Am trying to set one up here and have trouble with the python26-memcached installation. So far i have installed (via yum): 1.python26 2. python26-memcached 3. libevent 4. memcached-devel Now when i try to run `import memcache` from the python2.6 shell i get an ImportError: No module
2014 Dec 22
0
yum upgrade not working
Removing that libyaml package allowed me to upgrade! Thanks for the tip! Tim On Sat, Dec 20, 2014 at 9:25 PM, Tim Dunphy <bluethundr at gmail.com> wrote: > Hey all, > > I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10. > > But when I try the yum update command I get this response: > > --> Finished Dependency Resolution >
2014 Dec 21
4
yum upgrade not working
Hey all, I'm attempting to upgrade a Centos 5.9 machine to CentOS 5.10. But when I try the yum update command I get this response: --> Finished Dependency Resolution python26-PyYAML-3.08-5.el5.x86_64 from installed has depsolving problems --> Missing Dependency: libyaml-0.so.1()(64bit) is needed by package python26-PyYAML-3.08-5.el5.x86_64 (installed) --> Running transaction